package a.f.j;

import a.c.d;
import a.c.e;
import a.c.m;
import a.c.v;

public class n
{
  private a.c.ab a = new a.c.ab();
  public static boolean b;
  
  public boolean a(e parame)
  {
    boolean bool = ab.g;
    int i = ab.f;
    m localm = a();
    do
    {
      do
      {
        if (!localm.e()) {
          break;
        }
        if (!bool) {
          if (localm.a().e() == parame) {
            return true;
          }
        }
        localm.f();
      } while (i == 0);
    } while (bool);
    return false;
  }
  
  public m a()
  {
    return this.a.l();
  }
  
  public k b()
  {
    return new c(this.a.l());
  }
  
  void a(d paramd)
  {
    this.a.b(paramd);
  }
  
  public void a(d paramd1, d paramd2)
  {
    boolean bool = ab.g;
    int i = ab.f;
    e locale = paramd1.e();
    v localv = null;
    localv = this.a.f();
    do
    {
      do
      {
        if (localv == null) {
          break;
        }
        d locald = (d)localv.c();
        if ((!bool) && (i != 0)) {
          return;
        }
        if (!bool)
        {
          if (locald.e().equals(locale)) {
            break;
          }
          localv = this.a.c(localv);
        }
      } while (i == 0);
      this.a.a(paramd1, localv);
    } while (bool);
    this.a.a(paramd2, localv);
  }
  
  public void a(d paramd1, d paramd2, d paramd3)
  {
    boolean bool = ab.g;
    int i = ab.f;
    v localv = null;
    localv = this.a.f();
    do
    {
      do
      {
        if (localv == null) {
          break;
        }
        if (i != 0) {
          break label123;
        }
        if (!bool)
        {
          if (localv.c().equals(paramd1)) {
            break;
          }
          localv = this.a.c(localv);
        }
      } while (i == 0);
    } while (bool);
    if (!bool)
    {
      if (localv == null)
      {
        System.err.println("Face: replace Edge: Edge not found !");
        return;
      }
      this.a.a(paramd2, localv);
    }
    this.a.a(paramd3, localv);
    label123:
    this.a.h(localv);
  }
  
  void a(d paramd, a.c.ab paramab)
  {
    boolean bool = ab.g;
    int i = ab.f;
    v localv = null;
    localv = this.a.f();
    do
    {
      if (localv == null) {
        break;
      }
      if ((!bool) && (i != 0)) {
        break label73;
      }
      if (!bool)
      {
        if (localv.c().equals(paramd)) {
          break;
        }
        localv = this.a.c(localv);
      }
    } while (i == 0);
    if ((!bool) && (localv == null))
    {
      label73:
      System.err.println("Face: replace Edge: Edge not found !");
      return;
    }
    m localm = paramab.l();
    if (localm.e()) {}
    while (bool)
    {
      this.a.a(localm.a(), localv);
      localm.f();
      if ((!bool) && (i != 0)) {
        return;
      }
      if (i == 0) {
        break;
      }
    }
    this.a.h(localv);
  }
  
  void c(d paramd1, d paramd2, d paramd3)
  {
    boolean bool = ab.g;
    int i = ab.f;
    v localv1 = null;
    localv1 = this.a.f();
    do
    {
      if (localv1 == null) {
        break;
      }
      if ((!bool) && (i != 0)) {
        break label80;
      }
      if (!bool)
      {
        if (localv1.c().equals(paramd1)) {
          break;
        }
        localv1 = this.a.c(localv1);
      }
    } while (i == 0);
    if ((!bool) && (localv1 == null))
    {
      label80:
      System.err.println("Face: unreplace Edge: first edge not found !");
      return;
    }
    v localv2 = this.a.c(localv1);
    if (!bool) {
      if (localv2 == null) {
        localv2 = this.a.f();
      }
    }
    if (!bool) {
      if (this.a.g(localv2) != paramd2)
      {
        System.err.println("Face: unreplace Edge: second edge not found !");
        return;
      }
    }
    this.a.h(localv2);
    this.a.a(localv1, paramd3);
  }
  
  public String toString()
  {
    boolean bool = ab.g;
    int i = ab.f;
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("Edges: ");
    do
    {
      m localm = a();
      while (i == 0)
      {
        if (!localm.e()) {
          break;
        }
        if (i != 0) {
          break label77;
        }
        localStringBuffer.append(localm.a().toString()).append(" ");
        localm.f();
      }
    } while (bool);
    label77:
    return localStringBuffer.toString();
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.j.n

 * JD-Core Version:    0.7.0.1

 */